-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Details about AutomaticDecompression #8472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Details about AutomaticDecompression #8472
Conversation
|
Tagging subscribers to this area: @dotnet/ncl Issue DetailsFixes #3742
|
|
Learn Build status updates of commit 10d55f8: ❌ Validation status: errorsPlease follow instructions here which may help to resolve issue.
xml/System.Net.Http/SocketsHttpHandler.xml
For more details, please refer to the build report. If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Learn Build. Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. For any questions, please:
|
3a33a26 to
f6d36b2
Compare
|
Learn Build status updates of commit 3a33a26: ✅ Validation status: passed
For more details, please refer to the build report. Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report. For any questions, please:
|
|
Learn Build status updates of commit f6d36b2: ✅ Validation status: passed
For more details, please refer to the build report. Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report. For any questions, please:
|
liveans
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-authored-by: Ahmet İbrahim AKSOY <aaksoy@microsoft.com>
Co-authored-by: Ahmet İbrahim AKSOY <aaksoy@microsoft.com>
|
Learn Build status updates of commit 64b1e4b: ✅ Validation status: passed
For more details, please refer to the build report. Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report. For any questions, please:
|
|
Learn Build status updates of commit 5e11d91: ✅ Validation status: passed
For more details, please refer to the build report. Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report. For any questions, please:
|
| ## Remarks | ||
| Automatic decompression works only on the top most compression. So if the content is compressed multiple times, only the last compression will be decompressed. | ||
| For example, for a reponse with `Content-Encoding: gzip, br` header, the content will only be decompressed using Brotli, leaving the still gzipped content in the <xref:System.Net.Http.HttpResponseMessage.Content>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reponse
response
| ## Remarks | ||
| Automatic decompression works only on the top most compression. So if the content is compressed multiple times, only the last compression will be decompressed. | ||
| For example, for a reponse with `Content-Encoding: gzip, br` header, the content will only be decompressed using Brotli, leaving the still gzipped content in the <xref:System.Net.Http.HttpResponseMessage.Content>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example, for a reponse with
Content-Encoding: gzip, brheader
"For example, for a response with a Content-Encoding: gzip, br header that contains content first compressed with gzip and then that compressed content Brotli compressed,"
| Automatic decompression works only on the top most compression. So if the content is compressed multiple times, only the last compression will be decompressed. | ||
| For example, for a reponse with `Content-Encoding: gzip, br` header, the content will only be decompressed using Brotli, leaving the still gzipped content in the <xref:System.Net.Http.HttpResponseMessage.Content>. | ||
| Setting automatic decompression to anything else than <xref:System.Net.DecompressionMethods.None> will cause adding `Accept-Encoding` header with the set values into every outgoing <xref:System.Net.Http.HttpRequestMessage>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to anything else than
"to anything other than"
| Automatic decompression works only on the top most compression. So if the content is compressed multiple times, only the last compression will be decompressed. | ||
| For example, for a reponse with `Content-Encoding: gzip, br` header, the content will only be decompressed using Brotli, leaving the still gzipped content in the <xref:System.Net.Http.HttpResponseMessage.Content>. | ||
| Setting automatic decompression to anything else than <xref:System.Net.DecompressionMethods.None> will cause adding `Accept-Encoding` header with the set values into every outgoing <xref:System.Net.Http.HttpRequestMessage>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will cause adding
Accept-Encodingheader with
"will result in adding an Accept-Encoding header with"
| <remarks> | ||
| <format type="text/markdown"><![CDATA[ | ||
| ## Remarks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comments as above.
Fixes #3742